package router

import (
	"k8s-admin/controller/kubernetes"
	"k8s-admin/middleware"

	"github.com/gin-gonic/gin"
)

func DaemonSet(r *gin.Engine) {
	daemon_set := r.Group("daemonset/:cid")
	daemon_set.Use(middleware.K8sCache(), middleware.ChecKToken(), middleware.CasbinMiddle())
	{
		daemon_set.GET("getClusterDaemonSetList", kubernetes.GetClusterDaemonList)
		daemon_set.GET("getClusterDaemonSetInfo", kubernetes.GetClusterDaemonSetDetail)
		daemon_set.POST("createClusterDaemonSet", kubernetes.CreateClusterDaemonSet)
		daemon_set.DELETE("deleteClusterDaemonSet", kubernetes.DeleteClusterDaemonSet)
		daemon_set.PUT("updateClusterDaemonSet", kubernetes.UpdateClusterDaemonSet)

	}
}
